from django import newforms as forms
from django.newforms import widgets 
from django.utils.translation import gettext as _ 

class ParticipantForm(forms.Form):
    first_name = forms.CharField(label=_('first name'), max_length=30)
    last_name = forms.CharField(label=_('last name'), max_length=30)
    bio = forms.CharField(
        label=_('biography'),
        help_text=_('Use only plain (nonformatted) text') ,
        widget=forms.Textarea
    )


class VoteForm(forms.Form):
    from models import Vote
    vote = forms.ChoiceField(
        label=_('your vote'),
        choices=Vote.GRADE_CHOICES,
        widget=widgets.RadioSelect
    )